package oylj.recycle.all_in_one;

import java.util.List;

public class SystemConfig {
    // 1. 主配置类
    private List<Camera> cameras;
    private Pound pound;
    private Print print;

    public List<Camera> getCameras() { return cameras; }
    public Pound getPound() { return pound; }
    public Print getPrint() { return print; }


    // 3. 摄像头配置类
    public static class Camera {
        private final String ip;
        private final String password;
        private final String type;
        private final String show;
        public Camera(String ip,String password,String type,String show){
            this.ip = ip;
            this.password = password;
            this.type = type;
            this.show = show;
        }
        public String getIp() { return ip; }
        public String getPassword() { return password; }
        public String getType() { return type; }
        public String getShow(){return  show;}
    }

    // 4. 地磅配置类
    public static class Pound {
        private String ip;
        private int port;
        private int dataLength;
        private int dataStart;
        private int dataEnd;
        private String reverse;
        private String check;
        private int checkDataStart;
        private int checkDataEnd;
        private int checkValueStart;
        private int checkValueEnd;

        public String getIp() { return ip; }
        public int getPort() { return port; }
        public int getDataLength() { return dataLength; }
        public int getDataStart() { return dataStart; }
        public int getDataEnd() { return dataEnd; }
        public String getReverse() { return reverse; }
        public String getCheck() { return check; }
        public int getCheckDataStart() { return checkDataStart; }
        public int getCheckDataEnd() { return checkDataEnd; }
        public int getCheckValueStart() { return checkValueStart; }
        public int getCheckValueEnd() { return checkValueEnd; }
    }

    // 5. 打印配置类
    public static class Print {
        private String type;
        public String getType() { return type; }
    }

}